<?php
/**
 *	@name		余额宝
 *	@author		Jeffery
 *	@qq			1017756891
 *	@email		1017756891@qq.com
 *	@website	http://www.iweitao.net
**/


if(!defined('IN_DISCUZ')) {
	exit('Access Denied');
}

$sql = <<< SQL

DROP TABLE IF EXISTS `pre_weitao_fund_logs`;
CREATE TABLE IF NOT EXISTS `pre_weitao_fund_logs` (
  `logid` int(20) NOT NULL AUTO_INCREMENT,
  `uid` int(10) NOT NULL,
  `act` int(1) NOT NULL,
  `sum` char(10) NOT NULL,
  `time` char(15) NOT NULL,
  `status` int(1) NOT NULL,
  PRIMARY KEY (`logid`)
) ENGINE=MyISAM;

DROP TABLE IF EXISTS `pre_weitao_fund_order`;
CREATE TABLE IF NOT EXISTS `pre_weitao_fund_order` (
  `orderid` int(10) NOT NULL AUTO_INCREMENT,
  `uid` int(10) NOT NULL,
  `balance` char(30) NOT NULL,
  `accrual` char(20) NOT NULL,
  `createtime` char(15) NOT NULL,
  `lastpaytime` char(15) NOT NULL,
  `status` int(1) NOT NULL,
  PRIMARY KEY (`orderid`)
) ENGINE=MyISAM;

DROP TABLE IF EXISTS `pre_weitao_fund_user`;
CREATE TABLE IF NOT EXISTS `pre_weitao_fund_user` (
  `uid` int(10) NOT NULL,
  `username` char(15) NOT NULL,
  `accrual` char(30) NOT NULL,
  `balance` char(30) NOT NULL,
  `level` int(2) NOT NULL,
  `status` int(1) NOT NULL,
  `freeze` int(1) NOT NULL
) ENGINE=MyISAM;
SQL;

runquery($sql);
$finish = TRUE;
?>